<template>
  <div>
      <header>主机名</header>
      <div class="content">
          <div class="content_title">主机目录</div>
          <el-table :data="hostData"  stripe>
              <el-table-column prop="name" label="主机名" align="center"></el-table-column>
              <el-table-column prop="IPaddress" label="IP地址" align="center"></el-table-column>
          </el-table>
          <el-button type="primary" size="default" style="margin-top:30px">添加</el-button>
      </div>
      <div class="button_box">
          <el-button type="success" size="default">保存&应用</el-button>
          <el-button type="warning" size="default">保存</el-button>
          <el-button type="primary" size="default">复位</el-button>
      </div>
  </div>
</template>

<script>
export default {
    data(){
        return {
            hostData:[]
        }
    }
}
</script>

<style scoped lang="less">
header{
    margin-top: 20px;
    font-size: 24px;
}
.content{
    box-shadow: 0 0 10px #DEE1E6;
    margin-top: 30px;
    padding: 20px;
    .content_title{
        font-size: 14px;
        margin-left: 5px;
    }
    img{
        display: block;
        height: 30%;
        width:30%;
        margin: auto;
    }
    .state{
        font-size: 12px;
    }
    .content_box{
        display: flex;
        justify-content: center;
        text-align: center;
        span{
            margin-right: 20px;
            position: relative;
            top:8px
        }
    }
}
.button_box{
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}
</style>